/**
 * @import libs
 */
import { ref } from 'vue'
import { defineStore } from 'pinia'

export const usePetDoctorStaticMessStore = defineStore('petDoctorStaticMess', () => {

    /**
     * 角色 0: 对方 ||  1: 自己
     */
    const roleOpponent = 0
    const roleMy = 1

    /**
     * 聊天内容列表
     * @type {Array<{id: number, role: number, content: string}>}
     */
    let petDoctorChatList = ref([
        {
            id: 0,
            role: roleOpponent,
            content: '你好！我是你的AI健康顾问,有什么需要帮助的吗？'
        },
        {
            id: 1,
            role: roleMy,
            content: '我家狗狗两只眼睛突然红肿，一直在挠。'
        }, {
            id: 2,
            role: roleOpponent,
            content: '根据描述来看，可能是过敏。'
        }, {
            id: 3,
            role: roleMy,
            content: '那需要哪些药物来消炎或者其它方法可以缓解吗？'
        }, {
            id: 4,
            role: roleOpponent,
            content: '建议去买抗敏特。'
        }, {
            id: 5,
            role: roleMy,
            content: '好的，谢谢荞荞顾问，有什么问题我再来反馈。'
        }
    ])

    /**
     * 聊天头像和对方昵称
     * @type {{OpponentAvatar: string, MyAvatar: string, OpponentName: string}}
     */
    const petDoctorChatAvataAndName = ref({
        OpponentAvatar: "/static/imgs/petDoctor_img_2.png",
        MyAvatar: "/static/imgs/petDoctor_img_3.png",
        OpponentName: "荞荞健康顾问"
    })

    return {
        roleOpponent,
        petDoctorChatList,
        petDoctorChatAvataAndName,
        roleOpponent,
        roleMy
    }
})